package com.thinqq.web.client.content.painter;

import java.util.HashMap;
import java.util.Map;

public class ContentPainterRegistry {
	public static String IT_CONTENT = "it_content";
	public static String COMMUNICATION_CONTENT = "COMMUNICATION_CONTENT";
	public static String APPLICATION_DEVELOPMENT = "APPLICATION_DEVELOPMENT";
	public static String SIIS = "SIIS";
	public static String HOME = "HOME";
	public static String PD_CONTENT = "pd_content";
	public static String SITE_MAP = "SITE_MAP";
	private ContentPainterRegistry() {
		
	}

	private static ContentPainterRegistry instance = new ContentPainterRegistry();
	private static Map<String, IContentPainter> registry = new HashMap<String, IContentPainter>();

	public static ContentPainterRegistry getInstance() {
		return instance;
	}
	static {
		registry.put(IT_CONTENT, new InformationTechnologyContentPainter());
		registry.put(COMMUNICATION_CONTENT, new CommunicationContentPainter());
		registry.put(APPLICATION_DEVELOPMENT, new ApplicationDevelopmentContentPainter());
		registry.put(SIIS, new SIISContentPainter());
		registry.put(HOME, new ThinqQHomeContentPainter());
		registry.put(PD_CONTENT, new ProductDevelopmentContentPainter());
		registry.put(SITE_MAP, new SitemapContentPainter());
	}
	public static IContentPainter getContentPainter(String painterName){
		return registry.get(painterName);
	}

}
